package operation;

import book.Book;
import book.BookList;

public class ShowOperation implements IOperation{
    @Override
    public void work(BookList booklist) {
        System.out.println("显示图书");
        int currentSize= booklist.getUsedSize();
        for(int i=0;i< currentSize;i++){
            Book book=booklist.getBooks(i);
            System.out.println(book);
        }
    }
}
